#include "SelfHeatConductionTimeADKernel.h"
registerMooseObject("TrilobitaApp", SelfHeatConductionTimeADKernel);
template<>
InputParameters validParams<SelfHeatConductionTimeADKernel>()
{
    InputParameters params = validParams<ADTimeDerivative>();
    return params;
}

SelfHeatConductionTimeADKernel::SelfHeatConductionTimeADKernel(const InputParameters& parameters) :
    ADTimeDerivative(parameters),
    _cp(getADMaterialProperty<Real>("specific_heat")),
    _rho(getADMaterialProperty<Real>("solid_density"))
{
}

ADReal SelfHeatConductionTimeADKernel::precomputeQpResidual()
{
    //	std::cout<<_rho[_qp]*_cp[_qp]<<std::endl;
    return _rho[_qp] * _cp[_qp] * _u_dot[_qp];

}

